package allwe.bean;

import org.springframework.beans.factory.FactoryBean;

import java.util.Date;

public class MouseFactory implements FactoryBean<Mouse> {
    @Override
    public Mouse getObject() throws Exception {
        System.out.println("先走getObject()");
        Mouse mouse = new Mouse();
        mouse.setName("jerry");
        mouse.setBirthday(new Date());

        return mouse;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
